import Vue from 'vue'
import App from './App.vue'
import router from './router'
//引入仓库
import store from './store'
import TypeNav from './components/TypeNav/nav.vue'
Vue.component(TypeNav.name, TypeNav);
import Carsousel from '@/components/Carousel/index.vue';
Vue.component(Carsousel.name, Carsousel);
import Pagination from '@/components/Pagination/index.vue'
Vue.component(Pagination.name, Pagination);
// import Banner from './views/Home/Banner/banner.vue'
// Vue.component(Banner.name, Banner);
Vue.config.productionTip = false
    //引入mockServe.js----mock数据
import '@/mock/mockServe';
//引入swiper样式
import "swiper/css/swiper.css";
new Vue({
    router,
    store,
    render: h => h(App),
    //全局事件总线的$bus配置
    beforeCreate() {
        Vue.prototype.$bus = this;
    }
}).$mount('#app')